
export enum TaskCode {
  REGISTER_CAPTCHA = 'registerCaptcha',
  LOGIN_VERIFY = 'login_verify',
  FORGET_PASSWORD = 'forget_password',
  // 通用验证码, 后端会根据输入的接收者判断是邮箱还是手机号, 如果是手机号就采用短信模板发送消息
  VERIFY = 'verify',
  
  // 短信验证码
  VERIFY_SMS = 'verify_sms',
  // 邮件验证码
  VERIFY_EMAIl = 'verify_email',
}

export enum BizType {
  UPDATE_ACCOUNT = 'updateAccount',
  USER_LOGIN = 'userLogin',
  USER_REGISTER = 'userRegister',
  FORGET_PASSWORD = 'forgetPassword',
  MSG_RECEIVER = 'msgReceiver',
  ACCESS_KEY = 'accessKey',
  SHOW_SENSITIVE_CONFIG = 'showSensitiveConfig',
}

export interface VerifyMessageReq {
  // 接收人
  toUser: string,
  // 业务类型
  bizType?: string,
  // 任务编码
  taskCode: TaskCode,
  // 图形验证码唯一标识
  captchaToken?: string;
  // 图片验证码
  captchaValue?: string
  // 验证码类型
  captchaType?: string
}
